var AdCode_arr = new Array();

AdCode_arr[0] = '{tmp:looplist channelid="6" count="8" selected="commend"}<li><a href="{tmp:item name="create_path" }{tmp:item name="pagename" }.html" title="{tmp:item name="title"}">{tmp:item name="title" expression="cut,0,20,..."}</a></li>{/tmp:looplist}';

function LoadAd() {
    if(arguments.length>0)
    {
        for(var i=0;i<arguments.length;i++)
        {
            document.getElementById(arguments[i]).innerHTML = AdCode_arr[i];
        }
    }
}